<?php
header('content-type:text/html,charset=utf-8');
include '../public/db.php';
@$cid=$_REQUEST['cid'];
$menu = selectAll('select list.id,menu.func from func as list join func as menu on list.id=menu.fid where list.id=:cid',array('cid'=>$cid));

echo json_encode($menu);
//var_dump($menu) ;
